package com.box.entity;

/**   
*    
* 项目名称：MyBox   
* 类名称：WXResult   
* 类描述：   微信实体类，有些字段可不用
* 创建人：君无邪   
* 创建时间：2019年10月5日 下午5:24:54   
* 修改人：君无邪 
* 修改时间：2019年10月5日 下午5:24:54   
* 修改备注：  https://www.java214.com 
* @version    
*   INVALID_REQUEST	参数错误	参数格式有误或者未按规则上传	    订单重入时，要求参数值与原请求一致，请确认参数问题
*   NOAUTH	商户无此接口权限	商户未开通此接口权限	请商户前往申请此接口权限
*   NOTENOUGH	余额不足	用户帐号余额不足	用户帐号余额不足，请用户充值或更换支付卡后再支付
*ORDERPAID	商户订单已支付	商户订单已支付，无需重复操作	商户订单已支付，无需更多操作
*ORDERCLOSED	订单已关闭	当前订单已关闭，无法支付	当前订单已关闭，请重新下单
*SYSTEMERROR	系统错误	系统超时	系统异常，请用相同参数重新调用
*APPID_NOT_EXIST	APPID不存在	参数中缺少APPID	请检查APPID是否正确
*MCHID_NOT_EXIST	MCHID不存在	参数中缺少MCHID	请检查MCHID是否正确
*APPID_MCHID_NOT_MATCH	appid和mch_id不匹配	appid和mch_id不匹配	请确认appid和mch_id是否匹配
*LACK_PARAMS	缺少参数	缺少必要的请求参数	请检查参数是否齐全
*OUT_TRADE_NO_USED	商户订单号重复	同一笔交易不能多次提交	请核实商户订单号是否重复提交
*SIGNERROR	签名错误	参数签名结果不正确	请检查签名参数和方法是否都符合签名算法要求
*XML_FORMAT_ERROR	XML格式错误	XML格式错误	请检查XML参数格式是否正确
*REQUIRE_POST_METHOD	请使用post方法	未使用post传递参数 	请检查请求参数是否通过post方法提交
*POST_DATA_EMPTY	post数据为空	post数据不能为空	请检查post数据是否为空
*NOT_UTF8	编码格式错误	未使用指定编码格式	请使用UTF-8编码格式
*/ 
public class WXResult {
	
	
	
	private String appid;//公众账号ID 必填
	private String mch_id;//商户号  必填
	private String device_info;//设备号 非必填
	private String nonce_str;//随机字符串 必填
	private String sign;//签名 必填
	private String sign_type;//MD5 非必填
	private String body;//商品描述 必填
	private String detail;//商品详情 非必填
	private String attach;//附加数据 非必填
	private String out_trade_no;//商品订单号 必填
	private String fee_type;//标价币种 非必填
	private Integer total_fee;//金额 必填
	private String spbill_create_ip;//终端IP 必填
	private String time_start;//交易起始时间 非必填
	private String time_expire;//交易结束时间 非必填
	private String goods_tag;//订单优惠标记 非必填
	private String notify_url;//通知地址 http://www.weixin.qq.com/wxpay/pay.php  必须外网可访问 回调地址  必填
	private String trade_type;//交易类型   JSAPI -JSAPI支付  NATIVE -Native支付  APP -APP支付 必填
	private String product_id;//商品ID 非必填
	private String limit_pay;//指定支付方式 非必填    no_credit实例不能用信用卡支付
	private String openid;//用户标识   oUpF8uMuAJO_M2pxb1Q9zNjWeS6o非必填
	private String receipt;//电子发票入口开放标识 Y  非必填 必须在公众平台传入此字段才有用
	private String scene_info;//场景信息  json字符串格式
	private String subject;//名称
public WXResult(String appid, String mch_id, String device_info, String nonce_str, String sign, String sign_type,
			String body, String detail, String attach, String out_trade_no, String fee_type, Integer total_fee,
			String spbill_create_ip, String time_start, String time_expire, String goods_tag, String notify_url,
			String trade_type, String product_id, String limit_pay, String openid, String receipt, String scene_info,
			String subject) {
		super();
		this.appid = appid;
		this.mch_id = mch_id;
		this.device_info = device_info;
		this.nonce_str = nonce_str;
		this.sign = sign;
		this.sign_type = sign_type;
		this.body = body;
		this.detail = detail;
		this.attach = attach;
		this.out_trade_no = out_trade_no;
		this.fee_type = fee_type;
		this.total_fee = total_fee;
		this.spbill_create_ip = spbill_create_ip;
		this.time_start = time_start;
		this.time_expire = time_expire;
		this.goods_tag = goods_tag;
		this.notify_url = notify_url;
		this.trade_type = trade_type;
		this.product_id = product_id;
		this.limit_pay = limit_pay;
		this.openid = openid;
		this.receipt = receipt;
		this.scene_info = scene_info;
		this.subject = subject;
	}
public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	/*	{"store_info" : {
		"id": "SZTX001",
		"name": "腾大餐厅",
		"area_code": "440305",
		"address": "科技园中一路腾讯大厦" }}*/
	public String getAppid() {
		return appid;
	}
	public void setAppid(String appid) {
		this.appid = appid;
	}
	public String getMch_id() {
		return mch_id;
	}
	public void setMch_id(String mch_id) {
		this.mch_id = mch_id;
	}
	public String getDevice_info() {
		return device_info;
	}
	public void setDevice_info(String device_info) {
		this.device_info = device_info;
	}
	public String getNonce_str() {
		return nonce_str;
	}
	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
	}
	public String getSign() {
		return sign;
	}
	public void setSign(String sign) {
		this.sign = sign;
	}
	public String getSign_type() {
		return sign_type;
	}
	public void setSign_type(String sign_type) {
		this.sign_type = sign_type;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	public String getAttach() {
		return attach;
	}
	public void setAttach(String attach) {
		this.attach = attach;
	}
	public String getOut_trade_no() {
		return out_trade_no;
	}
	public void setOut_trade_no(String out_trade_no) {
		this.out_trade_no = out_trade_no;
	}
	public String getFee_type() {
		return fee_type;
	}
	public void setFee_type(String fee_type) {
		this.fee_type = fee_type;
	}
	public Integer getTotal_fee() {
		return total_fee;
	}
	public void setTotal_fee(Integer total_fee) {
		this.total_fee = total_fee;
	}
	public String getSpbill_create_ip() {
		return spbill_create_ip;
	}
	public void setSpbill_create_ip(String spbill_create_ip) {
		this.spbill_create_ip = spbill_create_ip;
	}
	public String getTime_start() {
		return time_start;
	}
	public void setTime_start(String time_start) {
		this.time_start = time_start;
	}
	public String getTime_expire() {
		return time_expire;
	}
	public void setTime_expire(String time_expire) {
		this.time_expire = time_expire;
	}
	public String getGoods_tag() {
		return goods_tag;
	}
	public void setGoods_tag(String goods_tag) {
		this.goods_tag = goods_tag;
	}
	public String getNotify_url() {
		return notify_url;
	}
	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}
	public String getTrade_type() {
		return trade_type;
	}
	public void setTrade_type(String trade_type) {
		this.trade_type = trade_type;
	}
	public String getProduct_id() {
		return product_id;
	}
	public void setProduct_id(String product_id) {
		this.product_id = product_id;
	}
	public String getLimit_pay() {
		return limit_pay;
	}
	public void setLimit_pay(String limit_pay) {
		this.limit_pay = limit_pay;
	}
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public String getReceipt() {
		return receipt;
	}
	public void setReceipt(String receipt) {
		this.receipt = receipt;
	}
	public String getScene_info() {
		return scene_info;
	}
	public void setScene_info(String scene_info) {
		this.scene_info = scene_info;
	}
	public WXResult() {
		super();
		// TODO Auto-generated constructor stub
	}
	public WXResult(String appid, String mch_id, String device_info, String nonce_str, String sign, String sign_type,
			String body, String detail, String attach, String out_trade_no, String fee_type, Integer total_fee,
			String spbill_create_ip, String time_start, String time_expire, String goods_tag, String notify_url,
			String trade_type, String product_id, String limit_pay, String openid, String receipt, String scene_info) {
		super();
		this.appid = appid;
		this.mch_id = mch_id;
		this.device_info = device_info;
		this.nonce_str = nonce_str;
		this.sign = sign;
		this.sign_type = sign_type;
		this.body = body;
		this.detail = detail;
		this.attach = attach;
		this.out_trade_no = out_trade_no;
		this.fee_type = fee_type;
		this.total_fee = total_fee;
		this.spbill_create_ip = spbill_create_ip;
		this.time_start = time_start;
		this.time_expire = time_expire;
		this.goods_tag = goods_tag;
		this.notify_url = notify_url;
		this.trade_type = trade_type;
		this.product_id = product_id;
		this.limit_pay = limit_pay;
		this.openid = openid;
		this.receipt = receipt;
		this.scene_info = scene_info;
	}
	@Override
	public String toString() {
		return "WXResult [appid=" + appid + ", mch_id=" + mch_id + ", device_info=" + device_info + ", nonce_str="
				+ nonce_str + ", sign=" + sign + ", sign_type=" + sign_type + ", body=" + body + ", detail=" + detail
				+ ", attach=" + attach + ", out_trade_no=" + out_trade_no + ", fee_type=" + fee_type + ", total_fee="
				+ total_fee + ", spbill_create_ip=" + spbill_create_ip + ", time_start=" + time_start + ", time_expire="
				+ time_expire + ", goods_tag=" + goods_tag + ", notify_url=" + notify_url + ", trade_type=" + trade_type
				+ ", product_id=" + product_id + ", limit_pay=" + limit_pay + ", openid=" + openid + ", receipt="
				+ receipt + ", scene_info=" + scene_info + ", subject=" + subject + "]";
	}


	

}
